package com.fowo.api.model.stock;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 入库单子表 导入导出辅助模型 */
@Data
public class StockInProductExcelPo {

  @ExcelProperty(value = "所属入库单")
  private Long parentStockInIdWarehouse;

  @ExcelIgnore
  @ExcelProperty(value = "所属入库单")
  private Long parentStockInId;

  @ExcelProperty(value = "产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long productId;

  @Size(max = 50, message = "sku长度不能超过20")
  @ExcelProperty(value = "sku")
  private String sku;

  @ExcelProperty(value = "店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shopId;

  @Size(max = 50, message = "fnsku长度不能超过20")
  @ExcelProperty(value = "fnsku")
  private String fnsku;

  @ExcelProperty(value = "产品单价")
  private java.math.BigDecimal unitPrice;

  @Size(max = 50, message = "备注长度不能超过20")
  @ExcelProperty(value = "备注")
  private String remarks;

  @ExcelProperty(value = "主材料单价")
  private java.math.BigDecimal mainUnitPrice;

  @Size(max = 50, message = "主材料克重长度不能超过20")
  @ExcelProperty(value = "主材料克重")
  private java.math.BigDecimal gramWeight;

  @Size(max = 50, message = "工费长度不能超过20")
  @ExcelProperty(value = "工费")
  private java.math.BigDecimal laborCosts;

  @NotNull(message = "入库数量不能为空")
  @ExcelProperty(value = "*入库数量")
  private Integer quantity;

  @ExcelProperty(value = "小计")
  private java.math.BigDecimal subtotal;
}
